<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>766智能家网上商城 - 766 SMART HOME</title>
<meta name="author" content="BIZ Team" />
<meta name="copyright" content="BIZ" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="keywords" content="前锋无限量家用供热/供暖中心" />
<meta name="description" content="前锋无限量家用供热/供暖中心" />

<link href="resources/shop/css/product.css" rel="stylesheet"
	type="text/css" />
<link href="resources/shop/css/customer.css" rel="stylesheet"
	type="text/css" />

<!-- 共有的CSS样式 -->
<link href="resources/shop/css/bootstrap.min.css" rel="stylesheet">

<!-- <link href="resources/shop/css/common.css" rel="stylesheet"> -->

<!-- 顶部的CSS样式 -->
<link href="resources/shop/css/head.css" rel="stylesheet">
<!-- 底部的CSS样式 -->
<link href="resources/shop/css/footer.css" rel="stylesheet">
<!-- 自己定义的CSS样式 -->
<link href="resources/shop/css/product_content.css" rel="stylesheet">
<link href="resources/shop/css/common_product.css" rel="stylesheet">
<!--[if lt IE 9]>
        <script src="resources/shop/js/html5shiv.js" charset="gb2312"></script>
        <script src="resources/shop/js/respond.min.js" charset="gb2312"></script>
        <![endif]-->

<script src="resources/shop/js/jquery-1.11.1.min.js" charset="gb2312"></script>
<script src="resources/shop/js/common.js" charset="gb2312"></script>
<script src="resources/shop/js/common_another.js" charset="gb2312"></script>
<script src="resources/shop/js/public.js" charset="gb2312"></script>

<script type="text/javascript" src="resources/shop/js/jquery.js"></script>

</head>
<body>
	<!-- 顶部====开始 -->
	<!--第一个顶部导航-->
	<div class="navbar navbar-default first-top-nav hidden-sm  hidden-xs"
		id="start">
		<div class="container" id="top-navigation">
			<div class="container-fluid">

				<div class="row top-info">
					<div class="col-md-2 col-sm-2 col-lg-2 top-info-content">
						<img src="resources/shop/images/dingwei_black.png"
							class="img-responsive" alt="Responsive image"
							id="pic_dingwei_huang">
						<!--<img src="resources/shop/images/dingwei_huang.png" class="img-responsive" alt="Responsive image">-->
						成都 <small>[切换城市]</small>
					</div>
					<div class="col-md-2 col-sm-2 col-lg-2 top-info-content">欢迎来到智能家！</div>
					<div class="col-md-2 col-sm-3 col-lg-3 top-info-content text-right"
						id="user-login">
						<a href="/login.jhtml">您好,请登录</a>
					</div>
					<div class="col-md-2 col-sm-1 col-lg-1 top-info-content"
						id="user-register">
						<a href="/register.jhtml"> 免费注册</a>
					</div>
					<div
						class="dropdown col-md-2 col-sm-2 col-lg-2 top-info-content first-top-nav-dropdown"
						id="my-home766">
						<a class="btn btn-default dropdown-toggle" type="button"
							id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true"
							aria-expanded="false"> 我的智能家 <span class="caret"></span>
						</a>
						<ul class="dropdown-menu" aria-labelledby="dropdownMenu2"
							id="first-top-nav-dropdown-content">
							<li><a href="#">我的订单</a></li>
							<li><a href="#">我的购物车</a></li>
							<li><a href="#">我的收藏</a></li>
							<li><a href="#">我的优惠券</a></li>
						</ul>
					</div>

					<div class="col-md-2 col-sm-2 col-lg-2 top-info-content">客服电话：12212344321</div>
				</div>

			</div>
			<!-- /.container-fluid -->
		</div>
	</div>

	<!--第二个导航条-->
	<div class="navbar navbar-default  second-top-nav ">
		<div class="container" id="top-navigation">
			<div class="container-fluid">
				<!-- Brand and toggle get grouped for better mobile display -->
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed"
						data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
						aria-expanded="false">
						<span class="sr-only">Toggle navigation</span> <span
							class="icon-bar"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span>
					</button>
					<a href="#">
						<div class="navbar-brand" href="/" id="second-top-linkto-home">
							<img src="resources/shop/images/766home_icon.png"
								id="second-top-home-icon">
						</div>
					</a>
				</div>

				<!-- Collect the nav links, forms, and other content for toggling -->
				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">
					<div id="hr"></div>
					<ul class="nav navbar-nav">
						<li class="<!--active-->"><a href="#">首页 <span
								class="sr-only">(current)</span></a></li>
						<li><a href="#">经典案例</a></li>
						<li class="dropdown " id="second-top-nav-dropdown"><a
							href="#" class="dropdown-toggle" data-toggle="dropdown"
							role="button" aria-haspopup="true" aria-expanded="false">智能方案
								<span class="caret"></span>
						</a>
							<ul class="dropdown-menu text-center">
								<li><a href="#">智能暖气</a></li>
								<li><a href="#">智能空调</a></li>
							</ul></li>
						<li><a href="#" onclick="scrollToId('union-seller-title');">品牌专区</a></li>
						<li><a href="#">售后服务</a></li>
					</ul>

					<div class="nav navbar-right hidden-sm hidden-md">
						<form class="navbar-form navbar-right" role="search">
							<div class="form-group">
								<input type="text" class="form-control" placeholder="Search">
								<img src="resources/shop/images/search.png">
							</div>
							<button type="submit" class="btn btn-default hidden">Submit</button>
						</form>
					</div>
				</div>
				<!-- /.navbar-collapse -->
			</div>
			<!-- /.container-fluid -->
		</div>
	</div>
	<!-- 顶部导航====结束 -->

	<!-- 相关推荐 和 广告   开始-->
	<div class="container productContent">
		<div class="span6">
			<div class="hotProduct">
				<!--<div class="title">热销产品</div>	 -->
				<div class="title">相关推荐</div>
				<ul>
					<li class="last">
						<!-- 图片部分 --> <!-- 						<div class="col-sm-12 col-md-12 col-lg-12 classified-goods-title"> -->
						<!-- 							<div class="container"> --> <!-- 								<div class="classified-goods-title-left"> -->
						<!-- 									<span>智能暖气</span> --> <!-- 								</div> --> <!-- 								<div class="classified-goods-title-angle"> -->
						<!-- 									此处放图片 --> <!-- 								</div> --> <!-- 								<div class="classified-goods-title-right"> -->
						<!-- 									<p> --> <!-- 										<a href="/product/list/79.jhtml">查看更多... ...</a> -->
						<!-- 									</p> --> <!-- 								</div> --> <!-- 							</div> -->
						<!-- 						</div> -->
						<div class="hotProductImage">
							<!--此处放图片-->
							<img style="display: inline;"
								src="http://www.766home.com/upload/image/201605/b656d7ac-2cd2-4cce-91a4-1fe78c9ab521.jpg"
								data-original="http://www.766home.com/upload/image/201605/b656d7ac-2cd2-4cce-91a4-1fe78c9ab521.jpg"
								width="170" height="170">
						</div>
						<div>
							<a href="/product/content/201602/549.html" title="前锋无限量家用供热/供暖中心">前锋无限量家用供热/供暖中心</a>
						</div>
						<div>
							销售价: <strong>￥13986.00元</strong>
						</div>
						<div>
							月销量: <em>1</em>
						</div>

					</li>
				</ul>
			</div>
			<div class="hotProduct advertisement" id="advertisement">

				<div class="title">广告区域</div>
				<ul>
					<li class="last">
						<div class="hotProductImage">
							<!--此处放图片-->
							<img style="display: inline;"
								src="http://www.766home.com/upload/image/201605/b656d7ac-2cd2-4cce-91a4-1fe78c9ab521.jpg"
								data-original="http://www.766home.com/upload/image/201605/b656d7ac-2cd2-4cce-91a4-1fe78c9ab521.jpg"
								width="170" height="170">
						</div> <a href="/product/content/201602/549.html" title="前锋无限量家用供热/供暖中心">前锋无限量家用供热/供暖中心</a>
						<div>
							销售价: <strong>￥13986.00元</strong>
						</div>
						<div>
							月销量: <em>1</em>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<!-- 相关推荐 和 广告   结束-->

		<div class="span18 last">
			<div class="path">
				<ul>
					<li><a href="/">首页</a></li>
					<li><a href="/product/list/79.jhtml">智能暖气</a></li>
					<li><a href="/product/list/139.jhtml">壁挂炉</a></li>
					<li><a href="/product/list/155.jhtml">家庭供热中心</a></li>
				</ul>
			</div>
			<div class="productImage">
				<a id="zoom"
					href="http://www.766home.com/upload/image/201604/f24e489d-82ce-4feb-8546-4d34274d27ba-large.jpg"
					rel="gallery"> <img class="medium"
					src="http://www.766home.com/upload/image/201604/f24e489d-82ce-4feb-8546-4d34274d27ba-medium.jpg" />
				</a> <a href="javascript:;" class="prev"></a>
				<div id="scrollable" class="scrollable">
					<div class="items">
						<a class="current" href="javascript:;"
							rel="{gallery: 'gallery', smallimage: 'http://www.766home.com/upload/image/201604/f24e489d-82ce-4feb-8546-4d34274d27ba-medium.jpg', largeimage: 'http://www.766home.com/upload/image/201604/f24e489d-82ce-4feb-8546-4d34274d27ba-large.jpg'}"><img
							src="http://www.766home.com/upload/image/201604/f24e489d-82ce-4feb-8546-4d34274d27ba-thumbnail.jpg"
							title="" /></a> <a href="javascript:;"
							rel="{gallery: 'gallery', smallimage: 'http://www.766home.com/upload/image/201604/057543e2-e06e-4977-b417-617bde72cfb5-medium.jpg', largeimage: 'http://www.766home.com/upload/image/201604/057543e2-e06e-4977-b417-617bde72cfb5-large.jpg'}"><img
							src="http://www.766home.com/upload/image/201604/057543e2-e06e-4977-b417-617bde72cfb5-thumbnail.jpg"
							title="" /></a> <a href="javascript:;"
							rel="{gallery: 'gallery', smallimage: 'http://www.766home.com/upload/image/201604/9bab7479-f744-4ef8-b8eb-8d190aaa5a7e-medium.jpg', largeimage: 'http://www.766home.com/upload/image/201604/9bab7479-f744-4ef8-b8eb-8d190aaa5a7e-large.jpg'}"><img
							src="http://www.766home.com/upload/image/201604/9bab7479-f744-4ef8-b8eb-8d190aaa5a7e-thumbnail.jpg"
							title="" /></a>
					</div>
				</div>
				<a href="javascript:;" class="next"></a>
			</div>
			<div class="name">前锋无限量家用供热/供暖中心</div>
			<div class="sn">
				<div>编号: 201602243885</div>
			</div>
			<div class="info">
				<div>
					<dl>
						<dt>原售价:</dt>
						<dd>
							<strong><s>￥13986.00</s></strong>
						</dd>
					</dl>
					<dl>
						<dt>销售价:</dt>
						<dd>
							<strong>￥12986.00</strong>
						</dd>
					</dl>

				</div>
				<!--注意层次关系 -->
				<div class="infoRight">
					<div class="infoCNum">
						<div>18</div>
						<div>&nbsp&nbsp评论&nbsp&nbsp</div>
					</div>
					|
					<div class="infoTNum">
						<div>35</div>
						<div>交易成功</div>
					</div>
				</div>
			</div>
			<!--配送部分 -->
			<div class="distributDestination">
				<strong>配送至：&nbsp&nbsp </strong> 四川成都 <strong>&nbsp &nbsp至
					&nbsp&nbsp</strong> 山东青岛
			</div>
			<div class="action">
				<div id="specification" class="specification clearfix">
					<div class="title">请选择商品规格</div>
					<dl>
						<dt>
							<span title="颜色">颜色:</span>
						</dt>
						<div class='standard-div'>
							<dd>
								<a href="javascript:;" class="text selected" val="155">香槟金<span
									title="点击取消选择">&nbsp;</span></a>
							</dd>
						</div>
					</dl>
					<dl>
						<dt>
							<span title="无限量型号">无限量型:</span>
						</dt>
						<div class='standard-div'>
							<dd>
								<a href="javascript:;" class="text selected" val="267">LSGD65-30A<span
									title="点击取消选择">&nbsp;</span></a>
							</dd>
							<dd>
								<a href="javascript:;" class="text" val="380">RSQD65-42A<span
									title="点击取消选择">&nbsp;</span></a>
							</dd>
						</div>
					</dl>
				</div>
				<dl class="quantity">
					<dt>购买数量:</dt>
					<dd>
						<input type="text" id="quantity" name="quantity" value="1"
							maxlength="4" onpaste="return false;" />
						<div>
							<span id="increase" class="increase">&nbsp;</span> <span
								id="decrease" class="decrease">&nbsp;</span>
						</div>
					</dd>
					<dd>台</dd>
				</dl>

				<!--立即购买《》加入购物车 -->
				<div class="buy">
					<input type="button" id="buyNow" class="addCart" value="立即购买" /> <input
						type="button" id="addCart" class="addCart" value="加入购物车" />
					<!--<a href="javascript:;" id="addFavorite">收藏商品</a> -->
				</div>
			</div>
			<div id="bar" class="bar">
				<ul>
					<li id="introductionTab"><a href="#introduction">商品介绍</a></li>
					<li id="parameterTab"><a href="#parameter">商品参数</a></li>
					<li id="reviewTab"><a href="#review">商品评论</a></li>
					<li id="consultationTab"><a href="#consultation">商品咨询</a></li>
				</ul>
			</div>
			<table class="brief">
				<tr>
					<th>额定电压</th>
					<td><span title="AC 220V   50Hz">AC 220V 50Hz</span></td>
					<th>水温调节范围</th>
					<td><span title="38-48、55℃">38-48、55℃</span></td>
					<th>适用水压范围</th>
					<td><span title="0.001-0.75MPa">0.001-0.75MPa</span></td>
				</tr>
				<tr>
					<th>水箱额定容积</th>
					<td><span title="65L">65L</span></td>
					<th>额定电加热电功率/电流</th>
					<td><span title="2000W/9.1A">2000W/9.1A</span></td>
					<th>额定燃气压力</th>
					<td><span title="2000Pa(天然气)">2000Pa(天然气)</span></td>
				</tr>
			</table>
			<div id="introduction" name="introduction" class="introduction">
				<div class="title">
					<strong>商品介绍</strong>
				</div>
				<div>
					<p>
						<img alt=""
							src="/../upload/image/201602/0a71b538-f7f5-4e38-a2a8-4f76742a2683.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/90203972-03e4-43a1-9aad-b8c33a51bf2f.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/fb6f98d8-fb67-42c4-b359-a33381fc5906.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/804b9774-9716-4d1b-a050-073ef5c21dfb.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/7f60fcd1-e8cc-43aa-b7e8-31ff7b458511.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/6bb8864a-a264-40d5-ab33-bb7d5d9a0580.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/980f1cbc-ed27-41ff-ab32-6b38c145333d.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/e371d75d-45ea-446f-b3ae-9bd31231144f.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/8b8de18e-2ca0-436c-b6d3-c2a1fa15af9a.jpg" />
					</p>
					<p>
						<img alt=""
							src="/../upload/image/201602/18d1fd30-81d2-49eb-902c-31d0842e2af1.jpg" />
					</p>
					<p>
						<img alt="" src="upload/image/watermark_delete.png" />
					</p>
					<p style="white-space: normal; line-height: 16.36px;">
						<br />
					</p>
					<p style="white-space: normal; line-height: 16.36px;">
						<img
							src="/upload/image/201605/a6bfc78f-eb42-49fb-939b-6f55445a00f9.jpg"
							alt="" />
					</p>
					<p style="white-space: normal; line-height: 16.36px;">
						<img
							src="/upload/image/201604/993e7ea3-0ef9-4826-a838-239888c57ddb.jpg"
							alt="" />
					</p>
					<p>
						<br />
					</p>
					<p>
						<br />
					</p>
					<p>
						<br /> &nbsp;<strong><span
							style="color: #E53333; font-size: 24px;">注：所有单品不含安装</span></strong>
					</p>
				</div>
			</div>
			<div id="parameter" name="parameter" class="parameter">
				<div class="title">
					<strong>商品参数</strong>
				</div>
				<table>
					<tr>
						<th class="group" colspan="2">无限量家用供热/供暖中心参数</th>
					</tr>
					<tr>
						<th>类型</th>
						<td>家庭供热/供暖中心</td>
					</tr>
					<tr>
						<th>外形尺寸</th>
						<td>560×417×1865mm</td>
					</tr>
					<tr>
						<th>额定燃气压力</th>
						<td>2000Pa(天然气)</td>
					</tr>
					<tr>
						<th>额定热负荷</th>
						<td>30KW</td>
					</tr>
					<tr>
						<th>水箱额定容积</th>
						<td>65L</td>
					</tr>
					<tr>
						<th>水温调节范围</th>
						<td>38-48、55℃</td>
					</tr>
					<tr>
						<th>适用水压范围</th>
						<td>0.001-0.75MPa</td>
					</tr>
					<tr>
						<th>额定电压</th>
						<td>AC 220V 50Hz</td>
					</tr>
					<tr>
						<th>额定电加热电功率/电流</th>
						<td>2000W/9.1A</td>
					</tr>
					<tr>
						<th>烟道接口尺寸</th>
						<td>Φ60mm×Φ100mm</td>
					</tr>
				</table>
			</div>
			<div id="review" name="review" class="review">
				<div class="title">商品评论</div>
				<div class="content clearfix">
					<p>
						暂无商品评论信息 <a href="/review/add/549.jhtml" id="addReview">[发表商品评论]</a>
					</p>
				</div>
			</div>
			<div id="consultation" name="consultation" class="consultation">
				<div class="title">商品咨询</div>
				<div class="content">
					<p>
						暂无商品咨询信息 <a href="/consultation/add/549.jhtml"
							id="addConsultation">[发表商品咨询]</a>
					</p>
				</div>
			</div>
		</div>
	</div>



	<!--侧边栏-->
	<div class="sideColumn">
		<div class="sideColumn-right">
			<ul class="servers-show">
				<li class="border-bottom-none servers-phone-hui"><a href="#"
					class="clear-both"><img
						src="resources/shop/images/service_03.png" /></a></li>
				<li class="servers-qq-hui"><a href="#" class="clear-both"><img
						src="resources/shop/images/service_05.png" /></a></li>
			</ul>
			<ul class="servers-hide border-bottom-none">
				<li class="servers-phone">400-766-766</li>

				<li class="servers-qq"><a
					href="tencent://message/?uin=88888888"> <span>766客服</span><label>88888888</label>
				</a></li>

			</ul>
		</div>
		<a class="goBack-home"><img src="resources/shop/images/goback.png" /></a>
	</div>

	<!-- 底部====开始 -->
	<div class="col-sm-12 col-md-12 col-lg-12" id="footer">
		<div class="container">
			<div class="col-sm-2 col-md-2 col-lg-2" id="footer-left">
				<div>
					<img src="resources/shop/images/766home_icon2.png">

					<p>SMART HOME</p>

					<p>智能家</p>
				</div>
			</div>
			<div class="col-sm-10 col-md-10 col-lg-10" id="footer-right">
				<div class="col-sm-12 col-md-12 col-lg-12">
					<div class="col-sm-2 col-md-2 col-lg-2">
						<a href="#">网站首页</a>
					</div>
					<div class="col-sm-2 col-md-2 col-lg-2">
						<a href="#">关于智能家</a>
					</div>
					<div class="col-sm-2 col-md-2 col-lg-2">
						<a href="#">服务项目</a>
					</div>
					<div class="col-sm-2 col-md-2 col-lg-2">
						<a href="#">新闻动态</a>
					</div>
					<div class="col-sm-2 col-md-2 col-lg-2">
						<a href="#">暖通常识</a>
					</div>
					<div class="col-sm-2 col-md-2 col-lg-2">
						<a href="#">联系我们</a>
					</div>
				</div>
				<div class="col-sm-12 col-lg-12">
					<p>Copyright @2016-2017 766智能家网上商城 版权所有</p>

					<p>蜀CP备16002064号</p>
				</div>
			</div>
		</div>
	</div>
	<!-- 底部====结束 -->
	<script type="text/javascript"
		src="resources/shop/js/jQuery-jcContact.js"></script>
	<script type="text/javascript" src="resources/shop/js/jquery.tools.js"></script>
	<script type="text/javascript" src="resources/shop/js/jquery.jqzoom.js"></script>
	<script type="text/javascript"
		src="resources/shop/js/jquery.validate.js"></script>
	<script type="text/javascript" src="resources/shop/js/common.js"></script>
	<script type="text/javascript" src="resources/shop/js/public.js"></script>
	<script type="text/javascript">
		$()
				.ready(
						function() {

							var $historyProduct = $("#historyProduct ul");
							var $clearHistoryProduct = $("#clearHistoryProduct");
							var $zoom = $("#zoom");
							var $scrollable = $("#scrollable");
							var $thumbnail = $("#scrollable a");
							var $specification = $("#specification dl");
							var $specificationTitle = $("#specification div");
							var $specificationValue = $("#specification a");
							var $productNotifyForm = $("#productNotifyForm");
							var $productNotify = $("#productNotify");
							var $productNotifyEmail = $("#productNotify input");
							var $addProductNotify = $("#addProductNotify");
							var $quantity = $("#quantity");
							var $increase = $("#increase");
							var $decrease = $("#decrease");
							var $addCart = $("#addCart");
							var $addFavorite = $("#addFavorite");
							var $window = $(window);
							var $bar = $("#bar ul");
							var $introductionTab = $("#introductionTab");
							var $parameterTab = $("#parameterTab");
							var $reviewTab = $("#reviewTab");
							var $consultationTab = $("#consultationTab");
							var $introduction = $("#introduction");
							var $parameter = $("#parameter");
							var $review = $("#review");
							var $addReview = $("#addReview");
							var $consultation = $("#consultation");
							var $addConsultation = $("#addConsultation");
							var barTop = $bar.offset().top;
							var productMap = {};
							productMap[549] = {
								path : null,
								specificationValues : [ "155", "267" ]
							};
							productMap[629] = {
								path : "/product/content/201604/629.html",
								specificationValues : [ "155", "380" ]
							};
							// 锁定规格值
							lockSpecificationValue();

							// 商品图片放大镜
							$zoom.jqzoom({
								zoomWidth : 368,
								zoomHeight : 368,
								title : false,
								showPreload : false,
								preloadImages : false
							});

							// 商品缩略图滚动
							$scrollable.scrollable();

							$thumbnail.hover(function() {
								var $this = $(this);
								if ($this.hasClass("current")) {
									return false;
								} else {
									$thumbnail.removeClass("current");
									$this.addClass("current").click();
								}
							});

							// 规格值选择
							$specificationValue
									.click(function() {
										var $this = $(this);
										if ($this.hasClass("locked")) {
											return false;
										}
										$this.addClass("selected").parent()
												.siblings().children("a")
												.removeClass("selected");
										var selectedIds = new Array();
										$specificationValue.filter(".selected")
												.each(
														function(i) {
															selectedIds[i] = $(
																	this).attr(
																	"val");
														});
										var locked = true;
										$
												.each(
														productMap,
														function(i, product) {
															if (product.specificationValues.length == selectedIds.length
																	&& contains(
																			product.specificationValues,
																			selectedIds)) {
																if (product.path != null) {
																	location.href = ""
																			+ product.path;
																	locked = false;
																}
																return false;
															}
														});
										if (locked) {
											lockSpecificationValue();
										}
										//$specificationTitle.hide();
										return false;
									});

							// 锁定规格值
							function lockSpecificationValue() {
								var selectedIds = new Array();
								$specificationValue.filter(".selected").each(
										function(i) {
											selectedIds[i] = $(this)
													.attr("val");
										});
								$specification
										.each(function() {
											var $this = $(this);
											var selectedId = $this.find(
													"a.selected").attr("val");
											var otherIds = $.grep(selectedIds,
													function(n, i) {
														return n != selectedId;
													});
											$this
													.find("a")
													.each(
															function() {
																var $this = $(this);
																otherIds
																		.push($this
																				.attr("val"));
																var locked = true;
																$
																		.each(
																				productMap,
																				function(
																						i,
																						product) {
																					if (contains(
																							product.specificationValues,
																							otherIds)) {
																						locked = false;
																						return false;
																					}
																				});
																if (locked) {
																	$this
																			.addClass("locked");
																} else {
																	$this
																			.removeClass("locked");
																}
																otherIds.pop();
															});
										});
							}

							// 判断是否包含
							function contains(array, values) {
								var contains = true;
								for (i in values) {
									if ($.inArray(values[i], array) < 0) {
										contains = false;
										break;
									}
								}
								return contains;
							}

							// 到货通知
							$addProductNotify
									.click(function() {
										var specificationValueIds = new Array();
										$specificationValue
												.filter(".selected")
												.each(
														function(i) {
															specificationValueIds[i] = $(
																	this).attr(
																	"val");
														});
										if (specificationValueIds.length != 2) {
											$specificationTitle.show();
											return false;
										}
										if ($addProductNotify.val() == "到货通知我") {
											$addProductNotify.val("确定登记");
											$productNotify.show();
											$productNotifyEmail.focus();
											if ($.trim($productNotifyEmail
													.val()) == "") {
												$
														.ajax({
															url : "/product_notify/email.jhtml",
															type : "GET",
															dataType : "json",
															cache : false,
															success : function(
																	data) {
																$productNotifyEmail
																		.val(data.email);
															}
														});
											}
										} else {
											$productNotifyForm.submit();
										}
										return false;
									});

							// 到货通知表单验证
							$productNotifyForm
									.validate({
										rules : {
											email : {
												required : true,
												email : true
											}
										},
										submitHandler : function(form) {
											$
													.ajax({
														url : "/product_notify/save.jhtml",
														type : "POST",
														data : {
															productId : 549,
															email : $productNotifyEmail
																	.val()
														},
														dataType : "json",
														cache : false,
														beforeSend : function() {
															$addProductNotify
																	.prop(
																			"disabled",
																			true);
														},
														success : function(data) {
															if (data.message.type == "success") {
																$addProductNotify
																		.val("到货通知我");
																$productNotify
																		.hide();
															}
															$
																	.message(data.message);
														},
														complete : function() {
															$addProductNotify
																	.prop(
																			"disabled",
																			false);
														}
													});
										}
									});

							// 购买数量
							$quantity.keypress(function(event) {
								var key = event.keyCode ? event.keyCode
										: event.which;
								if ((key >= 48 && key <= 57) || key == 8) {
									return true;
								} else {
									return false;
								}
							});

							// 增加购买数量
							$increase.click(function() {
								var quantity = $quantity.val();
								if (/^\d*[1-9]\d*$/.test(quantity)) {
									$quantity.val(parseInt(quantity) + 1);
								} else {
									$quantity.val(1);
								}
							});

							// 减少购买数量
							$decrease.click(function() {
								var quantity = $quantity.val();
								if (/^\d*[1-9]\d*$/.test(quantity)
										&& parseInt(quantity) > 1) {
									$quantity.val(parseInt(quantity) - 1);
								} else {
									$quantity.val(1);
								}
							});

							// 加入购物车
							$addCart.click(function() {
								var specificationValueIds = new Array();
								$specificationValue.filter(".selected").each(
										function(i) {
											specificationValueIds[i] = $(this)
													.attr("val");
										});
								if (specificationValueIds.length != 2) {
									$specificationTitle.show();
									return false;
								}
								if (!$.checkLogin()) {
									$.redirectLogin(window.location.pathname,
											"请登录！");
									return false;
								}
								var quantity = $quantity.val();
								if (/^\d*[1-9]\d*$/.test(quantity)
										&& parseInt(quantity) > 0) {
									$.ajax({
										url : "/cart/add.jhtml",
										type : "POST",
										data : {
											id : 549,
											quantity : quantity,
											cartType : 1
										},
										dataType : "json",
										cache : false,
										success : function(message) {
											$.message(message);
										}
									});
								} else {
									$.message("warn", "购买数量必须为正整数");
								}
							});

							// 添加商品收藏
							$addFavorite.click(function() {
								$.ajax({
									url : "/member/favorite/add.jhtml?id=549",
									type : "POST",
									dataType : "json",
									cache : false,
									success : function(message) {
										$.message(message);
									}
								});
								return false;
							});

							$window
									.scroll(function() {
										var scrollTop = $(this).scrollTop();
										if (scrollTop > barTop) {
											if (window.XMLHttpRequest) {
												$bar.css({
													position : "fixed",
													top : 0
												});
											} else {
												$bar.css({
													top : scrollTop
												});
											}
											var introductionTop = $introduction
													.size() > 0 ? $introduction
													.offset().top - 36 : null;
											var parameterTop = $parameter
													.size() > 0 ? $parameter
													.offset().top - 36 : null;
											var reviewTop = $review.size() > 0 ? $review
													.offset().top - 36
													: null;
											var consultationTop = $consultation
													.size() > 0 ? $consultation
													.offset().top - 36 : null;
											if (consultationTop != null
													&& scrollTop >= consultationTop) {
												$bar.find("li").removeClass(
														"current");
												$consultationTab
														.addClass("current");
											} else if (reviewTop != null
													&& scrollTop >= reviewTop) {
												$bar.find("li").removeClass(
														"current");
												$reviewTab.addClass("current");
											} else if (parameterTop != null
													&& scrollTop >= parameterTop) {
												$bar.find("li").removeClass(
														"current");
												$parameterTab
														.addClass("current");
											} else if (introductionTop != null
													&& scrollTop >= introductionTop) {
												$bar.find("li").removeClass(
														"current");
												$introductionTab
														.addClass("current");
											}
										} else {
											$bar.find("li").removeClass(
													"current");
											$bar.css({
												position : "absolute",
												top : barTop
											});
										}
									});

							// 发表商品评论
							$addReview.click(function() {
								if ($.checkLogin()) {
									return true;
								} else {
									$.redirectLogin("/review/add/549.jhtml",
											"必须登录后才能发表商品评论");
									return false;
								}
							});

							// 发表商品咨询
							$addConsultation.click(function() {
								if ($.checkLogin()) {
									return true;
								} else {
									$.redirectLogin(
											"/consultation/add/549.jhtml",
											"必须登录后才能发表商品咨询");
									return false;
								}
							});

							// 浏览记录
							var historyProduct = getCookie("historyProduct");
							var historyProductIds = historyProduct != null ? historyProduct
									.split(",")
									: new Array();
							for (var i = 0; i < historyProductIds.length; i++) {
								if (historyProductIds[i] == "549") {
									historyProductIds.splice(i, 1);
									break;
								}
							}
							historyProductIds.unshift("549");
							if (historyProductIds.length > 6) {
								historyProductIds.pop();
							}
							addCookie("historyProduct", historyProductIds
									.join(","), {
								path : "/"
							});
							$
									.ajax({
										url : "/product/history.jhtml",
										type : "GET",
										data : {
											ids : historyProductIds
										},
										dataType : "json",
										traditional : true,
										cache : false,
										success : function(data) {
											$
													.each(
															data,
															function(index,
																	product) {
																var thumbnail = product.thumbnail != null ? product.thumbnail
																		: "/upload/image/default_thumbnail.jpg";
																$historyProduct
																		.append('<li><img src="' + thumbnail + '" \/><a href="' + product.path + '">'
																				+ product.name
																				+ '<\/a><span>'
																				+ currency(
																						product.price,
																						true)
																				+ '<\/span><\/li>');
															});
										}
									});

							// 清空浏览记录
							$clearHistoryProduct.click(function() {
								$historyProduct.empty();
								$(this).text("暂无记录");
								removeCookie("historyProduct", {
									path : "/"
								});
							});

							// 点击数
							$.ajax({
								url : "/product/hits/549.jhtml",
								type : "GET"
							});

						});
	</script>
</body>